Repository navigation
feat(list): a list cell saves the moment it is committed, and Space types into the selected cell - #35864
Conversation
Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-20T14:12Z. The brief handed to the isolated declaration-face reviewer for PR #35864 (owed by the PR's Contract review brief — PR #35864 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Inputs read: card #35685 (body and all 4 comments: triage, claim, the ruling record 7039615827, the os-dev-report 7041666164), PR #35864 (body, 25-file list, the net diff against main from merge base Gates on this head: every completed run is success or skipped, including Check Changeset, PR-body guards, Governed Surface Queue Guard, Type Check (workspace, source, consumer, debt ledger), Lint (ESLint, repo and tooling, CI/release/engine, docs and code guards, query-options erasure, tooling self-tests), Live E2E UI, Dogfood Regression Gate and Test Core. No run has failed. 21 runs were still in progress when read: Test UI 1/16 to 16/16, Build and E2E UI, Type Check UI, Lint UI, Lint scoped slot lookup and corpus, and Lint PM dispatch-gates. This record judges the contract only. It does not stand in for those runs, and the PR does not merge until they finish green. ① Derived judgmentsAccept-set (card #35685, slice S1 as the ruling record routes it; S2 undo and S3 state-machine confirm plus drawer sync are separate PRs, and the PR says
Public surface:
Findings:
② Semver levelClause-②: yes (widening). The line appears in both the PR body and the changeset. It is right: the diff adds members to the Metadata-protocol: none. Right: no spec key, value or metadata type is touched. Level: under AGENTS.md (Before Submitting, item 3), a non-protocol change ships ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — REWORK (L1-a) · repo:objectstack#1 · head
|
… without onRowSave, docs and checklist Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
…selected cell Claude-Session: https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta round on top of the record for
The face is still the declaration face. The delta adds Gates on this head: no run has failed. These have completed with success:
The others completed so far are skipped. These were still in progress when read:
This record judges the contract only. The PR does not merge until those runs finish green. ① Derived judgmentsRound-1 findings, as they stand on this head:
New in the delta:
Accept-set items carried from the round-1 record were rechecked against the delta and are unchanged:
Remaining finding:
② Semver levelClause-②: yes (widening). The delta amends the line identically in the PR body and in Metadata-protocol: none. This is unchanged and right. Level: still ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 维护者速读
席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta round on top of the records for Gates on this head: no run has failed. These are complete and green: Check Changeset, PR-body guards, Governed Surface Queue Guard, Check PR Size, Check Documentation Links, Spec property liveness, Type Check · workspace, Type Check · debt ledger, Build UI Deps, Dogfood Regression Gate, filter and Auto Label. The rest of the completed runs are skipped. These were still in progress when read:
This record judges the contract only. The PR does not merge until those runs finish green, and Test UI matters most here because it runs the changed tests. ① Derived judgmentsThe delta,
Unchanged since the
② Semver levelClause-②: yes (widening). Metadata-protocol: none. Both are unchanged in the PR body and in The delta is test files only. They are not published, so no package's level moves and no changeset entry is owed for them. The level stays ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob L2 adoption and landing · 2026-11-20T15:21Z · The seat adopts the isolated declaration-face L2 record 7042828883 on head Scope is slice S1 of #35685 under the seat's split and the maintainer's ruling record 7039615827 (the sorted row stays until the next load); Space types into the cell per the maintainer on #35683 (7037290299). L1-a REWORK 7041864536 (docs), delta ACCEPT 7042741408 at |
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps
Part of #35685 (slice S1 of three; S2 undo and S3 state-machine confirm + drawer sync follow in their own pull requests, so the card stays open)
Clause-②: yes (widening) — new members on the
@object-ui/reactpackage entry:createOwnWrites,OwnWritesContext,useOwnWritesand theOwnWritestype, and an optional third parameter onuseDataInvalidation; three newtable.*keys in every@object-ui/i18nlocale (cellSaving,cellSaved,openRecordToFinish); nothing removed or renamedMetadata-protocol: none
Skills-docs:
content/docs/frontend/plugins/plugin-grid.mdx— the "On an object's list page" section now says Space types into the cell and each commit saves at once (with the refusal and 409 behaviour), and "Batch Editing & Multi-Row Save" says it is the model of a grid without select-first. No skill underskills/teaches the save bar, the row Save/Cancel buttons or the Space key (skills/objectstack-ui/rules/list-views.mdonly says inline editing is on by default, withuserActions: { editInline: false }as the opt-out), so nothing there moves.维护者速读
What changes
Per-cell autosave in the select-first grid (
@object-ui/components,data-table). Only a table underGridCellSelectionProviderchanges: that is every gridListViewdraws, becauseListViewpassescellSelection: truetoObjectGrid(the scope Sales ruled in 7035276698). Every other table keeps the staged save bar exactly as before.onRowSave, as ONE update carrying the row's pending fields. An unchanged commit sends nothing.data-slot="cell-save-state",role="status", newtable.cellSaving/table.cellSavedstrings in all 11 locales).table.openRecordToFinish), which calls the host's row click.onRowSave(wired withonBatchSavealone) does not autosave: it keeps the staged save bar, the row buttons and the tint exactly as 行内编辑:去掉开关,始终可改;单击选中、双击或回车编辑;只读格说明原因 #35684 drew them, so an edit is never held where nothing can send it.ObjectGrid, the only host today, always passes a row save.sortBasis), so a row the user just edited does not jump under the cursor.Only that row is redrawn (
@object-ui/plugin-grid,@object-ui/plugin-list,@object-ui/react).ObjectGrid.defaultRowSave, when the host mountedcellSelection, no longer bumps its refresh key. It overlays the saved row from the write's answer (mergeSavedRowin the newobjectGridRowPatch.ts):{ ...row, ...changes }and then every key of the answer the row already carries, so a server hook's rewrite shows as stored; a lookup the answer names by the same id keeps the expanded record the row read. The overlay applies only while the grid still holds the row object it was saved from, so the next load replaces it.onMutation, and the console's bridge onto the data-invalidation bus), which madeListViewread every row again.@object-ui/reactadds a small registry for "writes this reader draws itself":createOwnWrites(),OwnWritesContext/useOwnWrites(), and an optionalownWritesargument onuseDataInvalidation.ListViewprovides one;ObjectGridholds the record there for the length of its write;ListView'sonMutationsubscription and its bus reader (and the grid's own row load, for a grid that fetches for itself) let a change naming a held record go by. Every other reader (the record's detail pane, related lists, counts, the footer's whole-set summary) is not given the registry and refreshes as before; an object-wide change or'*'is never absorbed. On a 409 the hold stays through the dialog and the "Overwrite anyway" write, so that write re-reads no row either; only "Reload latest" lets go first (resolveRowConflict's newbeforeReload), so its reload reaches the list.If-Matchversion the previous save answered.writeRowGuardednow returns the write's answer;resolveRowConflictreturns{ outcome: 'saved', result } | { outcome: 'reloaded' }(both internal toObjectGrid).Space types into the selected cell. The maintainer, on #35683 (comment 7037290299, transcribing their own check): 「选中任意格后按空格,他是进入编辑了,没有你说的规则」 ("after selecting any cell and pressing Space, it goes into editing; there is no such rule as you described"). So the "Space on a selected cell opens the record" key that #35747 added is removed: Space is typed like any other key and opens the editor with a space; a two-state cell still flips on Space. The record opens from the title link or a touch tap.
Why
#35685 asks for the list to save as the user edits, like a spreadsheet, without a mode, a bar or a refetch that moves rows; Sales ruled the sorted-row timing (「等下次取数才归位」, ruling record 7039615827 item 1). Item 2 of that record (the state-machine confirm wording) belongs to S3.
Acceptance notes (behaviour changes a reviewer should know)
GridCellSelectionProvider, i.e.ListViewgrids. Related lists, dashboard tables and otherObjectGridhosts withoutcellSelectionkeep the staged save bar andonBatchSave; DataTable: retire the onBatchSave slot once list inline edit saves each cell on its own #35827 stays open for their migration (comment 7039688829).Review round 1 (heads
c552f8a3andf836ec36, after9970dffd)From the declaration L2 (PASS, comment 7041830485) and L1 (comment 7041864536):
onRowSavewould hold edits nothing could send → it falls back to the staged save bar (chosen over failing loud: the bar is the existing, tested model for such a table); test added.content/docs/frontend/plugins/plugin-grid.mdxsaid Space opens the record and Save / Save All save → corrected, and the Batch Editing section says where it applies.docs/qa/platform-checklist/areas/ux-conventions.json›ux-conventions.write-feedback: variants[1] and knownGaps[1] told the tester to press Save row / Save All → they now describe the autosave marks and toast; revision 14 → 15 with its history row.Clause-②:line names the new i18n keys. Not changed:rowPatchesentries are not pruned after a load (memory only; a load's rows never match a stalebase, and pruning bydatawould drop patches for grouped rows read outside it).ObjectGridhands the host's registry to its own row load even withoutcellSelection, so a same-object child grid under aListViewwould miss one refresh during an outer grid's write.Tests
New:
ui/packages/components/src/__tests__/data-table-autosave-35685.test.tsx— a commit sends at once with no bar, no edit column and no amber row; an unchanged commit sends nothing; a boolean on Space saves; a refusal keeps the value and shows the reason; Esc in the editor and on the selected cell restores; a refused cell and a later edit go as one update; a commit during a running save waits; the open-record hint shows (and does not, for a drawn field); a sorted row stays and a new load re-sorts; a select-first table withonBatchSaveonly keeps the bar and Save All sends the edit; Esc in the editor while the row saves leaves the sent value alone; control without the provider keeps the save bar.ui/packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx— one guarded update and no read again although the write is announced on the bus; the server's rewrite is drawn; the next save sends the answered version; a 409 kept with "Overwrite anyway" writes with the current version and reads no row again, while "Reload latest" reads again; control: withoutcellSelectionSave All re-reads.ui/packages/plugin-grid/src/objectGridRowPatch-35685.test.ts—mergeSavedRow.ui/packages/plugin-list/src/__tests__/ListView.ownWrites-35685.test.tsx— the grid is handed the registry; a held record's write (ononMutationand on the bus) re-reads nothing; control: another record's write, or the same one after release, re-reads.ui/packages/react/src/data-invalidation.test.ts—createOwnWriteshold / release / refcount, what it never absorbs, anduseDataInvalidationwith and without it.absorbsforced tofalse, the ObjectGrid and ListView "re-reads nothing" cases fail (2 of 5) and pass again once restored. Review round: releasing the hold before the conflict dialog again fails the "Overwrite anyway" case;autosaves = selectFirst(noonRowSavecheck) fails theonBatchSave-only case; dropping the running-save check from the editor's Esc fails the Esc case; each restored passes.Migrated (the behaviour they pinned is replaced by this card):
data-table-select-first-35684.test.tsx› "Space on a selected cell opens the record" → now asserts Space is not prevented, opens no record and opens the editor with a space (voided by the maintainer's statement above).data-table-select-first-35684.test.tsx› the edit-only trailing column describe ("drawn only while a row has changes") → "no edit-only column, ever": none at rest, none after a commit (which callsonRowSaveonce), plus its control.app-shell/src/views/ObjectView.rowOpensNothing-33317.test.tsxandObjectView.listOnlyRecordPage-33219.test.tsx› the helperopenWithSpace(Space on a selected cell as "the list's other way to open a row") →openWithTap, a touch tap on the cell, which still opens the record. The negative cases (preventNavigation: true,mode: none, a list-only object) still assert that path opens nothing, and the two CONTROL cases that a tap opens the drawer. Found red on CI at9970dffd(Test UI 1/16 and 6/16), fixed atf836ec36.Voided: none beyond the Space assertion above.
Verification
vitest(fromui/): everycomponentstable/grid/cell test file, all ofplugin-grid, all ofplugin-list, andreact/src/data-invalidation.test.ts— 509 files, 4805 passed, 7 skipped, 0 failed (re-run on the review-round head)type-check(tsc --noEmitand the test tsconfig) for@object-ui/components,@object-ui/react,@object-ui/plugin-grid,@object-ui/plugin-list: clean.eslinton every changed file: 0 errors.node scripts/pm/dispatch-gates.mjs --commands: 74 derived families on the review-round head (the docs and checklist edits add 32), all run, all exit 0;--ranreconcile: 74 derived, 74 run, 0 NOT-MEASURED, 0 UNRUN.node scripts/pm/overlap-check.mjs: VERDICT clean (merges withmainand with fix(app-shell): a decided approval step shows its step and decision in "Approval progress" instead of an empty card #35856, which shares the locale files).examples/app-showcase(objectstack dev --seed-admin, own port and DB) with theui/apps/consoleVite dev server over it, headless Chromium 1600×1000, zh-CN. Before = the changedui/sources checked out from the merge base; after = this head.GET /api/v1/data/showcase_project?…top=50…); Space on a selected name cell opens the record.PATCHwith that field and nothing else (no list read), the cell shows the check mark, no save bar. Project end date set before the start date:400with the cross-field reason namingstart_date; the cell keeps "2000年1月1日" and the notice says 「保存失败: 结束日期不能早于开始日期。」 with 「打开记录完成修改」. A budget edit on that row then sends{"end_date":"2000-01-01","budget":123456}as one PATCH. Esc on the end-date cell restores "2027年1月19日" and the notice goes. Space on a selected name cell opens its editor with " " and the URL does not change. A task title typed with surrounding spaces is trimmed by the showcase'sbeforeUpdatehook and the cell shows the trimmed answer. Sorted by name, a row renamed from "Data Platform" to "Zeta Platform" stays in its place with no list read; after a reload it moves to its sorted place.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (eslint on the changed files: 0 errors)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUYnzYCcbcpABdW7ps